import request from '@/utils/request'

export function get(roleId) {
  const params = {
    page: 0,
    size: 999,
    roleId
  }
  return request({
    url: 'rest/api/member',
    method: 'get',
    params
  })
}
export function add(data) {
  return request({
    url: 'rest/api/member',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'rest/api/member/del/' + id,
    method: 'get'
  })
}

export function edit(data) {
  return request({
    url: 'rest/api/member/update',
    method: 'post',
    data
  })
}
export default { add, edit, del }
